<!-- Start home -->
<section id="home" class="parallax">
    <div class="container search-box">
        <div class="row">
            <div class="span8 offset2">		
                <div id="search_box" align="center">
                    <h3>Anbefalinger <i>Justert</i> for Markedskreftene</h3>
                    <form class="search" action="<?php echo $this->Html->url('/search'); ?>">
                        <input type="text" placeholder="Type Something..." name="search" value="<?php echo (isset($keyword) ? $keyword : ''); ?>" autofocus="autofocus" required="required">
                        <input type="submit" value="Search company" name="company">
                        <input type="submit" value="Best Performer" name="performer">
                        <input type="submit" value="Search analyst" name="analyst">
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- End home -->

<!-- Start navigation -->
<section class="nav-container">	
    <div class="navbar-inner">
        <div class="container">
            <div class="row">
                <div class="span12">						
                    <a href="<?php echo $this->Html->url('/'); ?>" class="small-logo"><?php echo $this->Html->image(($site_logo && $site_logo['Settings']['value'] ? $site_logo['Settings']['value'] : 'logo-small.png')); ?></a>	
                    <nav> 
                        <ul>
                            <li><a href="<?php echo $this->Html->url('/#about'); ?>">About us</a></li>								
                            <li><a href="<?php echo $this->Html->url('/#contact'); ?>">Contact</a></li>
                            <?php if ($this->Session->read('Auth.User')) { ?>
                                <li>
                                    <?php echo $this->Html->link('My Account', '/users/cinfo'); ?>
                                </li>
                                <li>
                                    <?php echo $this->Html->link('Payment', '/payment'); ?>
                                </li>
                                <li><?php echo $this->Html->link('Logout', '/users/logout'); ?></li>
                            <?php } else { ?>
                                <li><?php echo $this->Html->link('Login', '/users/login'); ?></li>
                                <li><?php echo $this->Html->link('Register', '/users/register'); ?></li>
                            <?php }
                            ?>
                        </ul>
                    </nav>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- End navigation -->